package whisper.support.user.service.impl;

import org.springframework.stereotype.Service;
import whisper.support.user.repository.RoleMapper;
import whisper.support.user.service.RoleService;

import javax.annotation.Resource;
import java.util.Set;

/**
 * Created by JT on 2018/5/29
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Resource
    private RoleMapper roleMapper;

    @Override
    public Set<String> findByUsername(String username) {
        System.out.println("role service...");
        return roleMapper.findByUsername(username);
    }
}
